import Vue from 'vue'
import store from './store'

import axios from 'axios'
// 全局设置 axios 发送请求带上cookie
axios.defaults.withCredentials = true
Vue.prototype.$axios = axios


Vue.config.productionTip = false

import VueCookies from 'vue-cookies'
import ElementUI from 'element-ui'
import locale from 'element-ui/lib/locale/lang/zh-CN'
import './styles.scss'

Vue.use(ElementUI, { locale })
Vue.use(VueCookies)


import App from './App.vue'
import router from './router'
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
